<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
<!--
	function goLogin(type) {
				
		if ("oauth" == type) {
			document.loginform.action = "<%=request.getContextPath() %>/oauth";			
			document.loginform.submit();
		}
	}
	
	function fcheck() {
		var idChk = document.loginform.user_id.value;
		
		if (idChk == "") {
			document.getElementById('idChk').style.display = "inline";
			document.loginform.user_id.focus();
			return false;
		} else {
			document.getElementById('idChk').style.display = "none";
		}
		
		var pw = document.loginform.user_pwd.value;
		
		if (pw == "") {
			document.getElementById('pwChk').style.display = "inline";
			document.loginform.user_pwd.focus();
			return false;
		} else {
			document.getElementById('pwChk').style.display = "none";
		}		
	}
//-->
</script>
</head>
<body>
<form name="loginform" id="loginform">
<table border="1" width="50%" align="center">
	<caption>로그인</caption>
	<tr class="c_text">
		<td colspan="2">모든 항목을 반드시 입력해주십시오.</td>		
	</tr>
	<tr>
		<td class="l_text">이 메 일</td>
		<td>
			<input type="text" name="user_id" onblur="fcheck()" />
			<div id="idChk" style="display: none; color: red">이메일을 기재해주세요.</div>
		</td>
	</tr>
	<tr>
		<td class="l_text">비밀번호</td>
		<td>
			<input type="password" name="user_pwd" onblur="fcheck()" />
			<div id="pwChk" style="display: none; color: red">비밀번호를 기재해주세요.</div>
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<input type="button" name="oauth" value="확인" onclick="goLogin('oauth');" />
		</td>		
	</tr>
</table>
</form>
</body>
</html>